/*
 * @Description: LoggerUtil
 * @Author: zhaokun
 * @Date: 2022-01-07 15:36:33
 * @LastEditTime: 2022-01-15 20:36:21
 * @FilePath: \user\common\nwLogger.go
 */
package common

import "github.com/tal-tech/go-zero/core/logx"

type LoggerUtil interface {
	Info(str string)
	Error(str string)
	Warn(str string)
}

type nwLoggerUtil struct {
}

func NewNwLoggerUtil() *nwLoggerUtil {
	// logx.CollectSysLog()
	return &nwLoggerUtil{}
}

/**
 * @description: info
 * @param {string} str
 * @return nil
 */
func (logger nwLoggerUtil) Info(str ...interface{}) {
	logx.Info(str)
}

/**
 * @description: Error
 * @param {string} str
 * @return nil
 */
func (logger nwLoggerUtil) Error(str ...interface{}) {
	logx.Error(str...)
}

/**
 * @description: Alert
 * @param {string} str
 * @return nil
 */
func (logger nwLoggerUtil) Alert(str string) {
	logx.Alert(str)
}
